<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class News extends Model
{
    use SoftDeletes;

    protected $fillable = ['user_id', 'view_counts', 'title', 'summary', 'body', 'thumb_up_counts', 'comment_counts'];

    public function category()
    {
        return $this->belongsTo(Category::class);
    }
}
